const validate = require("@/utils/validate");
const { body } = require("express-validator");

const create = validate([
  body("title").notEmpty().withMessage("请输入事件"),
  body("start_at").notEmpty().withMessage("请输入开始时间"),
]);

module.exports = { create };
